clear all
files=dir('*.bin');
fid = fopen('files.txt', 'w');
 for i=1:length(files)
     var=strrep(files(i).name,'.bin','');
     fprintf(fid, '%s \n', var);
     fprintf(fid, '\n');
     
 end
fclose(fid);


